{include file="public/header" /}
<style type="text/css">
    #des,#des input{ width: 40px;text-align:center;}
    #id{ width: 78px; }
    .bs-checkbox{ width: 36px; height: 40px }
    .fixed-table-toolbar .columns,.fixed-table-toolbar .search{margin-left:0px; margin-top: 0px }
    #title span{ float: right; margin-left: 3.333px;}
    .search{ margin-bottom: 0px !important; }
    .asdlkjasd{ background: #1ab394; color: #fff}
</style>
<body class="gray-bg">
<div class="wrapper wrapper-content {:config('adminClass.main')}">
    <div class="ibox float-e-margins">
            <div class="">
                <a onclick="add('{:url('kefuadd', ['url' => -1])}')" href="javascript:void(0);" class="btn btn-primary ">添加子菜单</a>
            </div>
            <script type="text/javascript">
                function add(url){
                    layer.open({
                        type: 2,
                        title: '提示',
                        shadeClose: false,
                        shade: 0.2,
                        area: ['90%', '90%'],
                        skin:'shangchuantup',
                        shift:-1,
                        content: url,
                        scrollbar: false,
                        moveType: 1,
                        moveOut: true
                    });
                }
            </script>
        <div class="ibox-content">
            {include file="public/topsection"}
            <div class="row row-lg">
                <div class="col-sm-12">
                    <div class="example">
                        <table data-toggle="table" data-striped="false">
                            <thead>
                            <tr>
                                <th>id</th>
                                <th data-align="center">回复语</th>
                                <th>内容</th>
                                <th data-align="center">管理</th>
                            </tr>
                            </thead>
                            <tbody id="layer-photos-demo">
                            {volist name="data" id="v"}
                            <tr id="id{$v.id}" class="class">
                                <td>{$v.id}</td>
                                <td>{$v.description}</td>
                                <td id="title">
                                    <a onclick="watch({$v.id})">
                                        {:_substr(strip_tags($v.content))}

                                        <span class="label label-danger">预览</span>
                                    </a>
                                </td>
                                <td>
                                    <div class="btn-group">
                                        <button data-toggle="dropdown" class="btn btn-primary btn-xs dropdown-toggle">操作 <span class="caret"></span>
                                        </button>
                                        <ul class="dropdown-menu">
                                            <li><a onclick="add('{:url('kefuadd',['id'=>$v['id'],'url'=>-1])}')">修改</a>
                                            </li>
                                            <li class="divider"></li>
                                            <li><a onclick="swal_del({$v.id},'{:url('del',['id'=>$v['id']])})}')">删除</a>
                                            </li>
                                        </ul>
                                    </div>
                                </td>
                            </tr>
                            {/volist}
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{include file="public/footer" /}
{load href="__PLUGINS__bootstrap/bootstrap-table.min.css"}
{load href="__PLUGINS__bootstrap/bootstrap-table.min.js"}